<template>
  <div id="Indend">
    <div class="title">饿了么</div>
    <div class="findlist">
      <div class="find">
        <span
          :class="{ active: nowindex == index }"
          @click="option(index)"
          v-for="(item, index) in findlist"
          :key="index"
          >{{ item.option }}</span
        >
      </div>
    </div>
    <div class="indendlist">
      <div class="indend">
        <div class="store">手工饺子<span>已送达</span></div>
        <div class="pic-price">
          <div class="pic"></div>
          <div class="price">
            <div class="much">￥17.8</div>
            <div class="many">共2件</div>
          </div>
        </div>
        <div class="btn"><button>再来一单</button></div>
      </div>
    </div>
  </div>
</template>

 <script setup>
import { ref } from "vue";
var nowindex = ref(0);
var findlist = ref([
  {
    option: "全部",
  },
  {
    option: "待消费",
  },
  {
    option: "待评价",
  },
  {
    option: "退款",
  },
]);
var option = (index) => {
  nowindex.value = index;
};
</script>

<style scoped>
#Indend {
  height: 100%;
  background-color: rgb(245, 244, 244);
  padding: 0 10px;
}
#Indend .title {
  line-height: 70px;
  text-align: center;
  font-weight: 700;
}
#Indend .find {
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
  margin: 0 10px;
}
#Indend .find > span {
  margin-right: 20px;
}
#Indend .find > span.active {
  color: rgb(43, 163, 237);
}
#Indend .indendlist .indend {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
}
#Indend .indendlist .indend .store {
  line-height: 40px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
#Indend .indendlist .indend .store span {
  font-weight: 100;
  color: #ccc;
  font-size: 14px;
}
#Indend .indendlist .indend .pic-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#Indend .indendlist .indend .pic-price .much {
  font-weight: 700;
  line-height: 30px;
}
#Indend .indendlist .indend .pic-price .many {
  font-size: 13px;
  color: #ccc;
  text-align: center;
}
#Indend .indendlist .indend .btn {
  margin-left: 77%;
  line-height: 50px;
}
#Indend .indendlist .indend .btn button {
  padding: 5px;
  border: 1px solid rgb(43, 163, 237);
  color: rgb(43, 163, 237);
  background-color: white;
  border-radius: 30px;
}
</style>